package com.punai.config.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.punai.common.core.domain.BaseEntity;
import com.punai.common.core.domain.TreeParentBo;
import com.punai.common.utils.sqlite.SLCDesc;
import com.punai.common.utils.sqlite.SLTDesc;

import java.util.ArrayList;
import java.util.List;

@TableName("config_formatcategory")
@SLTDesc(tName = "TAB_CONFIG_FORMATCATEGORY")
public class ConfigFormatCategory extends BaseEntity implements TreeParentBo {

    @SLCDesc(tc = "ID")
    private String id;
    @SLCDesc(tc = "CODE")
    private String code;
    @SLCDesc(tc = "NAME")
    private String name;
    @SLCDesc(tc = "PARENT")
    private String pid;
    @SLCDesc(tc = "CLASS_IDS")
    private String classIds;
    private Integer orderNum;

    @TableField(exist = false)
    @SLCDesc(tc = "VERSION")
    private Integer version;

    @TableField(exist = false)
    @SLCDesc(tc = "SREACH_KEY")
    private String sreachKey;

    @TableField(exist = false)
    private String templateIds;

    @TableField(exist = false)
    private List<String> classIdArr = new ArrayList<>();

    @TableField(exist = false)
    private List<String> templateIdArr = new ArrayList<>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getClassIds() {
        return classIds;
    }

    public void setClassIds(String classIds) {
        this.classIds = classIds;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getSreachKey() {
        return sreachKey;
    }

    public void setSreachKey(String sreachKey) {
        this.sreachKey = sreachKey;
    }

    public String getTemplateIds() {
        return templateIds;
    }

    public void setTemplateIds(String templateIds) {
        this.templateIds = templateIds;
    }

    public List<String> getClassIdArr() {
        return classIdArr;
    }

    public void setClassIdArr(List<String> classIdArr) {
        this.classIdArr = classIdArr;
    }

    public List<String> getTemplateIdArr() {
        return templateIdArr;
    }

    public void setTemplateIdArr(List<String> templateIdArr) {
        this.templateIdArr = templateIdArr;
    }
}
